<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta charset="utf-8">
		<title>__TITLE__</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="msapplication-tap-highlight" content="no">
		<meta content="telephone=no" name="format-detection">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<link rel="stylesheet" href="__COMMON__/css/2/common.min.css">
		<link rel="stylesheet" href="__STYLE__/DisShop/style/product.min.css">
		<script src="__COMMON__/js/requirejs.js" charset="utf-8"></script>
		<script src="__COMMON__/js/zepto/zepto.min.js" charset="utf-8"></script>
		<script src="__STYLE__/DisShop/script/app.js" charset="utf-8"></script>
		<script type="text/javascript">
			requirejs.config({
				baseUrl: "__COMMON__/js",
				paths: {
					modal: "__COMMON__/js/2/modal",
					slide: "__COMMON__/js/2/slide",
					wx: 'http://res.wx.qq.com/open/js/jweixin-1.0.0',
					artTemplate: "__COMMON__/js/artTemplate"
				}
			});
		</script>
		<style type="text/css">
			.gh-tip {
				padding: .2em;
				width: 100%;
				height: 3.286em;
				background-color: rgba(18, 142, 149, .8);
				color: #fff;
			}
			.btn-theme {
				padding: .3em .5em;
				border: 2px solid #fff;
			}
			.gh-tip-face {
				margin-right: .5em;
				width: 3em;
				height: 3em;
				overflow: hidden;
			}
			.underline{
				text-decoration: underline;
			}
			.iconfont {
                width: 0.9em;
                height: 0.9em;
                background-size: cover;
            }
            .icon-home {
                background-repeat: no-repeat;
                background-image: url();
            }
            .icon-cart {
                background-repeat: no-repeat;
                background-image: url();
            }
            .icon-person {
                background-repeat: no-repeat;
                background-image: url();
            }
            .icon-achievement {
                background-repeat: no-repeat;
                background-image: url();
            }
            .pr-copyright {
                width: 100%;
                padding: 0.8em;
            }
		</style>
	</head>

	<body>

		{__CONTENT__}

		<!-- 微信分享开始 -->
        <script type="text/javascript">
            var share = {$share},
                debug = false;
            require(['wx'], function(wx) {
                wx.config({
                    debug: debug,
                    appId: '{$wxConfig.appId}',
                    timestamp: "{$wxConfig.timestamp}",
                    nonceStr: '{$wxConfig.nonceStr}',
                    signature: '{$wxConfig.signature}',
                    jsApiList: [
                        'checkJsApi',
                        'onMenuShareTimeline',
                        'onMenuShareAppMessage',
                        'onMenuShareQQ',
                        'onMenuShareWeibo',
                        'hideMenuItems',
                        'showMenuItems',
                        'hideAllNonBaseMenuItem',
                        'showAllNonBaseMenuItem',
                        'translateVoice',
                        'startRecord',
                        'stopRecord',
                        'onRecordEnd',
                        'playVoice',
                        'pauseVoice',
                        'stopVoice',
                        'uploadVoice',
                        'downloadVoice',
                        'chooseImage',
                        'previewImage',
                        'uploadImage',
                        'downloadImage',
                        'getNetworkType',
                        'openLocation',
                        'getLocation',
                        'hideOptionMenu',
                        'showOptionMenu',
                        'closeWindow',
                        'scanQRCode',
                        'chooseWXPay',
                        'openProductSpecificView',
                        'addCard',
                        'chooseCard',
                        'openCard'
                    ]
                });
                wx.ready(function() {
                    wx.onMenuShareAppMessage({
                        link: share.link,
                        title: share.title,
                        desc: share.desc,
                        imgUrl: share.imgUrl
                    })
                    wx.onMenuShareTimeline({
                        link: share.link,
                        title: share.desc,
                        imgUrl: share.imgUrl
                    })
                });
            })
        </script>
        <!-- 微信分享结束 -->

        <p class="pr-copyright">{$user.nickname}({$openId})</p>
        <p class="pr-copyright">{$system.bottom}</p>
		
		<!-- 导航菜单 -->
        <!--<nav class="pr-nav flex-row">
            <a class="pr-nav-item row-item" href="{$config.url}">
                <i class="iconfont icon-home">&nbsp;</i>
                <p class="pr-nav-title">微信商城</p>
            </a>
            <a class="pr-nav-item row-item" href="{:url(null, 'DisShopTry', 'show', 'sid='.$sid.'&qid='.$qid)}">
                <i class="iconfont icon-cart">&nbsp;</i>
                <p class="pr-nav-title">免费试用</p>
            </a>
            <if condition="$user['subscribe']">
                <a class="pr-nav-item row-item" href="{:url(null, 'DisShop', 'my', 'sid='.$sid.'&qid='.$qid)}">
                    <i class="iconfont icon-person">&nbsp;</i>
                    <p class="pr-nav-title">我的服务</p>
                </a>
            </if>
            <if condition="$user['subscribe']">
                <a class="pr-nav-item row-item" href="{:url(null, 'DisShop', 'achievement', 'sid='.$sid)}">
                    <i class="iconfont icon-achievement">&nbsp;</i>
                    <p class="pr-nav-title">我的业绩</p>
                </a>
            </if>
        </nav>-->
		
		<div id="utuo-top">{$system.top}</div>
		{$system.statistics}

		<php>
			if(isset($_GET['debug'])) {
		</php>
		<script type="text/javascript">
			$("a").click(function() {
				var href = $(this).attr("href");
				href.indexOf("javascript") == 0 || href.indexOf("#") == 0 || $(this).attr('href', href + '?debug');
			});
		</script>
		<php>
			}
		</php>

	</body>

</html>